package com.peak.distribution.manager.agent.impl;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.peak.distribution.entity.agent.DisAgentAward;
import com.peak.distribution.manager.agent.DisAgentAwardManager;
import com.peak.spring.boot.core.manager.BaseManagerImpl;

@Component
@Transactional(readOnly = true)
public class DisAgentAwardManagerImpl extends BaseManagerImpl<DisAgentAward> implements DisAgentAwardManager {

	@Override
	public DisAgentAward getByAgentId(Integer agentId) {
		return super.findOne("agent.id", agentId);
	}

}
